package com.Adapter;

import com.Prototype.Apple;
import com.Prototype.Banana;
import com.Prototype.MyFruit;
import com.Prototype.MyFruitStore;

public class Client {
    public static void main(String[] args) {
        MyFruit fru1 = new Apple();
        MyFruit fru2 = new Banana();
        MyFruitStore mfs1 = MyFruitStore.Getfruitstore();
        mfs1.Add(1,fru1);
        mfs1.Add(2,fru2);
        mfs1.Add(3,new Apple());
        mfs1.Add(4,new Banana());
        InewJuicer newJuicer = new Adapter();
        System.out.println(InewJuicer.newPort(mfs1.Get(3),mfs1.Get(4)));
    }
}
